home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.5 / am / lisp.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  2.9 KB  |  101 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19.  
  20. ## ---------- ##
  21. ## Building.  ##
  22. ## ---------- ##
  23.  
  24. EMACS = @EMACS@
  25. lispdir = @lispdir@
  26.  
  27. .el.elc:
  28.     @echo 'WARNING: Warnings can be ignored. :-)'
  29.     if test $(EMACS) != no; then \
  30.       EMACS=$(EMACS) $(SHELL) $(srcdir)/elisp-comp $<; \
  31.     else : ; fi
  32.  
  33. ## ------------ ##
  34. ## Installing.  ##
  35. ## ------------ ##
  36.  
  37. if %?INSTALL%
  38. _am_installdirs += $(DESTDIR)$(%NDIR%dir)
  39. ?EXEC?.PHONY install-exec-am: install-%DIR%LISP
  40. ?!EXEC?.PHONY install-data-am: install-%DIR%LISP
  41. install-%DIR%LISP: $(%DIR%_LISP) $(ELCFILES)
  42.     @$(NORMAL_INSTALL)
  43. ## lispdir might not be defined.
  44.     @if test -n "$(lispdir)"; then \
  45.       $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir); \
  46. ## Funny invocation because Makefile variable can be empty, leading to
  47. ## a syntax error in sh.
  48.       list='$(%DIR%_LISP)'; for p in $$list; do \
  49. ## A lisp file can be in the source directory or the build directory.
  50.         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  51. ?BASE?        f="`echo $$p | sed -e 's|^.*/||'`"; \
  52. ?!BASE?        f="$$p"; \
  53.         echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
  54.         $(INSTALL_DATA) $$d$$p $(DESTDIR)$(%NDIR%dir)/$$f; \
  55. ## Only install .elc file if it exists.
  56.         if test -f $${p}c; then \
  57.           echo " $(INSTALL_DATA) $${p}c $(DESTDIR)$(%NDIR%dir)/$${f}c"; \
  58.           $(INSTALL_DATA) $${p}c $(DESTDIR)$(%NDIR%dir)/$${f}c; \
  59.         else : ; fi; \
  60.       done; \
  61.     else : ; fi
  62. endif %?INSTALL%
  63.  
  64.  
  65. ## -------------- ##
  66. ## Uninstalling.  ##
  67. ## -------------- ##
  68.  
  69. if %?INSTALL%
  70. .PHONY uninstall-am: uninstall-%DIR%LISP
  71. uninstall-%DIR%LISP:
  72.     @$(NORMAL_UNINSTALL)
  73. ## lispdir might not be defined.
  74.     @if test -n "$(lispdir)"; then \
  75.       list='$(%DIR%_LISP)'; for p in $$list; do \
  76. ?BASE?        f="`echo $$p | sed -e 's|^.*/||'`"; \
  77. ?!BASE?        f="$$p"; \
  78.         echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$f $(DESTDIR)$(%NDIR%dir)/$${f}c"; \
  79.         rm -f $(DESTDIR)$(%NDIR%dir)/$$f $(DESTDIR)$(%NDIR%dir)/$${f}c; \
  80.       done; \
  81.     else : ; fi
  82. endif %?INSTALL%
  83.  
  84.  
  85. ## ---------- ##
  86. ## Cleaning.  ##
  87. ## ---------- ##
  88.  
  89. .PHONY clean-am: clean-lisp
  90. clean-lisp:
  91.     -test -z "$(ELCFILES)" || rm -f $(ELCFILES)
  92.  
  93.  
  94. ## -------------- ##
  95. ## Distributing.  ##
  96. ## -------------- ##
  97.  
  98. if %?DIST%
  99. DIST_COMMON += $(%DIR%_LISP)
  100. endif %?DIST%
  101.